<?php
/* 
 * 使用include函数
 * 
 */
include_once('Mysql_connect.inc');//启动连接，连接名：$conn
$UserID = "05177291244";
$bid = "1003";
 $result_borrowed = mysqli_query($conn, "SELECT bid, roll_id, borrowed_date, return_date FROM bookborrower where roll_id ='$UserID'and bid ='$bid'");
 if (mysqli_num_rows($result_borrowed)<=0){
        echo "you have not borrowed this book";
    }
    else echo "Have been borrowed";
include_once('Mysql_unconnect.inc'); //断开连接
?>